// 以750px 底图为准开发页面
export const setDomFontSize = (): void => {
  let width = document.documentElement.clientWidth || document.body.clientWidth;
  let fontsize = (width >= 750 ? 750 : width) / 10 + 'px';
  (document.getElementsByTagName('html')[0].style as CSSStyleDeclaration).fontSize = fontsize;
};

window.addEventListener('resize', setDomFontSize);
